<div>
  <p><h2>Basic information</h2></p>
  <p>
    <b>Username:</b>
    <%= @user.username %>
  </p>

  <p>
    <b>Email:</b>
    <%= @user.email %>
  </p>
</div>

<div>
  <p><h2>Profile</h2></p>
  <p>
    <b>Name:</b>
    <%= @user.profile.name %>
  </p>

  <p>
    <b>Bio:</b>
    <%= @user.profile.bio %>
  </p>
  
  <p>
    <b>Location:</b>
    <%= @user.profile.location %>
  </p>

  <p>
    <b>Web site:</b>
    <%= @user.profile.website %>
  </p>
</div>

<div>
  <p><h2>Settings</h2></p>
  <p>
    <b>Country:</b>
    <%= @user.settings.country %>
  </p>

  <p>
    <b>Language:</b>
    <%= @user.settings.language %>
  </p>
  
  <p>
    <b>Timezone:</b>
    <%= @user.settings.timezone %>
  </p>
</div>

<%= link_to 'Back', users_path %>